package com.atguigu.gmall.product.mapper;

import com.atguigu.gmall.model.product.SkuSaleAttrValue;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * sku销售属性值关系mapper层
 */
@Mapper
public interface SkuSaleAttrValueMapper extends BaseMapper<SkuSaleAttrValue>{
    /**
     * 根据spuid查询出该spu下所有的sku与销售属性值的对应关系
     * @param spuId
     * @return
     */
    public List<Map> selectSkuSaleAttrListBySpuId(@Param("spuId")Long spuId);
}
